package com.sqjw.demo.manager;

import com.sqjw.demo.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 单耀
 * @date 2023/8/24 16:37
 */
@Slf4j
@Component
public class TestManager {
    @Autowired
    private UserService userService;
    public void test() {
        System.out.println("测试");
        log.info("test234测试");
        try {
            userService.query();
        } catch (Exception e) {
            log.error("",e);
            e.printStackTrace();
        }
    }
}
